package cn.net.dckj.common.core.api.mapper;

import cn.net.dckj.common.core.api.IService;

import java.io.Serializable;
import java.util.Map;

/**
 * dao的接口
 * Created by DIY_PC on 2019-5-28.
 */
public interface ICrudDao<T, PK extends Serializable> extends IService {
    /**
     * 逻辑删除数据
     *
     * @param entity
     * @return 结果
     */
    int logicDeleteById(T entity);

    /**
     * 批量逻辑删除数据
     *
     * @param map
     * @return 结果
     */
    int logicDeleteByIds(Map<String, Object> map);
}
